﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;

namespace Factory.RBAC.RolePermissions.Dto
{
    /// <summary>
    /// 角色权限关联树形表
    /// </summary>
    public class RolePermissionsTreeDto:EntityDto<int>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string? title {  get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        public string? field { get; set; }
        /// <summary>
        /// 初始展开
        /// </summary>
        public bool spread { get; set; } = true;
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool Checked{ get; set; }
        /// <summary>
        /// 子集
        /// </summary>
        public List<RolePermissionsTreeDto> children {  get; set; }=new List<RolePermissionsTreeDto>();
    }
}
